<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>顺丰管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Bootstrap Styles-->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"
	media="all" />
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"
	media="all" />
<!-- Morris Chart Styles-->
<link href="js/morris/morris-0.4.3.min.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="css/custom-styles.css" rel="stylesheet" />
</head>
<body>
	<div id="wrapper">
		<nav class="navbar navbar-default top-navbar" role="navigation">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target=".sidebar-collapse">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="${pageContext.request.contextPath }/backstage/homepage"> <strong>顺丰物流操作管理部 </strong></a>
			</div>

			<ul class="nav navbar-top-links navbar-right">
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-messages">
						<li><a href="#">
								<div>
									<strong>万茜</strong> <span class="pull-right text-muted">
										<em>今天</em>
									</span>
								</div>
								<div>在吗？</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<strong>胡歌</strong> <span class="pull-right text-muted">
										<em>昨天</em>
									</span>
								</div>
								<div>出来玩</div>
						</a></li>

						<li class="divider"></li>
						<li><a class="text-center" href="#"> <strong>查看全部</strong>
								<i class="fa fa-angle-right"></i>
						</a></li>
					</ul></li>
				<!-- /.dropdown -->
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-tasks fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-tasks">
						<li><a href="#">
								<div>
									<p>
										<strong>任务 1</strong> <span class="pull-right text-muted">60%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-success"
											role="progressbar" aria-valuenow="60" aria-valuemin="0"
											aria-valuemax="100" style="width: 60%">
											<span class="sr-only">60% Complete (success)</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<p>
										<strong>任务 2</strong> <span class="pull-right text-muted">28%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-info" role="progressbar"
											aria-valuenow="28" aria-valuemin="0" aria-valuemax="100"
											style="width: 28%">
											<span class="sr-only">28% Complete</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<p>
										<strong>任务 3</strong> <span class="pull-right text-muted">60%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-warning"
											role="progressbar" aria-valuenow="60" aria-valuemin="0"
											aria-valuemax="100" style="width: 60%">
											<span class="sr-only">60% Complete (warning)</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<p>
										<strong>任务 4</strong> <span class="pull-right text-muted">85%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-danger"
											role="progressbar" aria-valuenow="85" aria-valuemin="0"
											aria-valuemax="100" style="width: 85%">
											<span class="sr-only">85% Complete (danger)</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a class="text-center" href="#"> <strong>查看所有任务</strong>
								<i class="fa fa-angle-right"></i>
						</a></li>
					</ul> <!-- /.dropdown-tasks --></li>
				<!-- /.dropdown -->
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-alerts">
						<li><a href="#">
								<div>
									<i class="fa fa-comment fa-fw"></i> 新通知 <span
										class="pull-right text-muted small">4 min</span>
								</div>
						</a></li>
						<li class="divider"></li>


						<li><a href="#">
								<div>
									<i class="fa fa-envelope fa-fw"></i> 新通知 <span
										class="pull-right text-muted small">4 min</span>
								</div>
						</a></li>


						<li class="divider"></li>
						<li><a class="text-center" href="#"> <strong>查看所有通知</strong>
								<i class="fa fa-angle-right"></i>
						</a></li>
					</ul> <!-- /.dropdown-alerts --></li>
				<!-- /.dropdown -->
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-user">
						<li><a href="#"><i class="fa fa-user fa-fw"></i> 个人中心(${staffname})</a></li>
						<li><a href="#"><i class="fa fa-gear fa-fw"></i> 设置</a></li>
						<li class="divider"></li>
						<li><a href="${pageContext.request.contextPath }/backstage/loginout"><i class="fa fa-sign-out fa-fw"></i> 退出</a></li>
					</ul> <!-- /.dropdown-user --></li>
				<!-- /.dropdown -->
			</ul>
		</nav>
		<!--/. NAV TOP  -->
		<nav class="navbar-default navbar-side" role="navigation">
			<div class="sidebar-collapse">
				<ul class="nav" id="main-menu">

					<li>
                        <a href="${pageContext.request.contextPath }/backstage/notice"><i class="fa fa-dashboard"></i> 公告</a>
                    </li>
                    <li>
                        <a class="active-menu" href="${pageContext.request.contextPath }/index/staff"><i class="fa fa-sitemap"></i> 员工管理</a>
                    </li>
                    
                    <li>
                        <a href="${pageContext.request.contextPath }/index/system"><i class="fa fa-edit"></i> 系统管理</a>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath }/index/other"><i class="fa fa-table"></i> 其他 </a>
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-qrcode"></i> 拓展栏<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="#">任务一</a>
                            </li>
                            <li>
                                <a href="#">任务二</a>
                            </li>
                            <li>
                                <a href="#">任务三</a>
                            </li>
                        </ul>
                    </li>
				</ul>

			</div>

		</nav>
		<!-- /. NAV SIDE  -->
		<div id="page-wrapper">
			<div id="page-inner">
				<div class="row">
					<div class="col-md-12">
						<h1 class="page-header">
							员工管理 <small>更新</small>
						</h1>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12">
						<!-- Advanced Tables -->
						<div class="panel panel-default">
							<div class="panel-heading">
								<% //提取超链接传递的参数保存在局部变量
								String name=request.getParameter("name");
								String id=request.getParameter("id");
								String sex=request.getParameter("sex");
								String age=request.getParameter("age");
								String department=request.getParameter("department");
								String entrytime=request.getParameter("entrytime");
								String wages=request.getParameter("wages");
								%>
								员工列表&ensp;&ensp;
								<button><a href="${pageContext.request.contextPath }/staffp/select">检索</a></button>
								<button><a href="${pageContext.request.contextPath }/index/addStaffP">录入</a></button>
							</div>
							<div class="panel-body">
								<div class="table-responsive">
									<table class="table table-striped table-bordered table-hover"
										id="dataTables-example">
										<tbody>
										<form
												action="${pageContext.request.contextPath }/staffp/update?id=<%{out.print(id);} %>"
												method="post">
												<tr>
													<th>工号</th>
													<td><%{out.print(id);}%></td>
												</tr>
												<tr>
													<th>员工姓名</th>
													<td><input type="text" class="form-control" name="name" value="<%{out.print(name);}%>" required/></td>
												</tr>
												<tr>
													<th>性别</th>
													<td><select id="sex" name="sex" class="form-control" required>
														<option value="男"> 男 </option>
		                                                <option value="女 "> 女 </option>
		                                                </select>
												</tr>
												<tr>
													<th>年龄</th>
													<td><input type="text" class="form-control" name="age" value="<% {out.print(age);}%>" maxlength="3" onkeyup="this.value=this.value.replace(/\D/g,'')"required/></td>
												</tr>
												<tr>
													<th>部门</th>
													<td><select id="department" name="department" class="form-control" required>
		                                                <option value="物流派送"> 物流派送 </option>
		                                                <option value="办公室 "> 办公室 </option>
		                                                <option value="物资部"> 物资部 </option>
		                                            </select>
													</td>
												</tr>
												<tr>
													<th>入职时间</th>
													<td><input type="date" class="form-control" name="entrytime" value="<% {out.print(entrytime);}%>" required/></td>
												</tr>
												<tr>
													<th>工资</th>
													<td><input type="text" class="form-control" name="wages" value="<% {out.print(wages);}%>"/></td>
												</tr>
												<tr>
												<td colspan="2" style="text-align: center;"><input type="submit" class='btn btn-finish btn-fill btn-success btn-wd' value="提交" /></td>
												</tr>
											</form>
											
										</tbody>
									</table>
								</div>

							</div>
						</div>
						<!--End Advanced Tables -->
					</div>
				</div>
				<!-- /. ROW  -->
				<footer>
					<p class="copyright">
						Copyright &copy; 2020 顺丰速运 版权所有 <a target="_blank"
							href="http://www.sf-express.com/cn/sc/index.html">www.sf-express.com</a>
					</p>
				</footer>
			</div>
			<!-- /. PAGE INNER  -->
		</div>
		<!-- /. PAGE WRAPPER  -->
	</div>
	<!-- /. WRAPPER  -->
	<!-- JS Scripts-->
	<!-- jQuery Js -->
	<script src="js/jquery-1.10.2.js"></script>
	<!-- Bootstrap Js -->
	<script src="js/bootstrap.min.js"></script>

	<!-- Metis Menu Js -->
	<script src="js/jquery.metisMenu.js"></script>
	<!-- Morris Chart Js -->
	<script src="js/morris/raphael-2.1.0.min.js"></script>
	<script src="js/morris/morris.js"></script>


	<script src="js/easypiechart.js"></script>
	<script src="js/easypiechart-data.js"></script>


	<!-- Custom Js -->
	<script src="js/custom-scripts.js"></script>
	<script type="text/javascript">
	 $("#sex").val(<% {out.print(sex);}%>);
	 $("#department").val(<% {out.print(department);}%>);
	</script>

</body>
</html>